#import "YawnFlowCell.h"


@implementation YawnFlowCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self cactusLuminousConfigViews];
	}
	return self;
}

- (void)setKineticCascadeSwoop:(YawnFlowModel *)kineticCascadeSwoop {
	_kineticCascadeSwoop = kineticCascadeSwoop;

	//: 配置cell的UI

	self.pioneerLabel.text = [kineticCascadeSwoop.balanceXenial stringValue];



}
//: self.insectBtn 的点击事件
- (void)action_1 {}

//: quiverClarityUnderwater 的点击事件
- (void)action_2 {}

//: 设置self.vividImageView的圆角
- (void)radiatePlume:(UIImageView *)cactus xenophobeXenonJourney:(CGFloat)nirvanaQuenchJourney {
	cactus.layer.cornerRadius = nirvanaQuenchJourney;
	cactus.layer.masksToBounds = YES;
}

- (void)cactusLuminousConfigViews {

    //: 描述_0
    self.pioneerLabel = [UILabel new];
    self.pioneerLabel.text = @"label_0";
    self.pioneerLabel.font = [UIFont systemFontOfSize:20 weight:UIFontWeightBold];
    self.pioneerLabel.textColor = [UIColor colorWithRed:185/255.0 green:17/255.0 blue:133/255.0 alpha:0.6];
    self.pioneerLabel.textAlignment = NSTextAlignmentLeft;
    //: 不用理会的骚操作 = self.pioneerLabel.numberOfLines = 1;
    NSInteger knotPrismDelight = 1;
    if (knotPrismDelight>42 && knotPrismDelight < 9451) {
	    knotPrismDelight = 94;
	    NSString *essenceCourageous = [NSString stringWithFormat:@"%ld", (long)knotPrismDelight];
	    if (essenceCourageous.length>44 && [essenceCourageous isEqualToString:self.pioneerLabel.text]) {
		    knotPrismDelight = essenceCourageous.integerValue * 6;
	    }
    }
    self.pioneerLabel.numberOfLines = knotPrismDelight;
    [self.contentView addSubview:self.pioneerLabel];
	[self.pioneerLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(100);
		make.height.mas_equalTo(65);
	}];


    //: 描述_1
    self.insectBtn = [[UIButton alloc] initWithFrame:CGRectZero];
    self.insectBtn.frame = CGRectMake(28, 11, 50, 178);
    UIImage *apexUnwind = [UIImage imageNamed:@"images/icon_1.png"];
    if (apexUnwind) {
	    [self.insectBtn setImage:apexUnwind forState:UIControlStateNormal];
    }
    [self.insectBtn setTitle:@"button_1" forState:UIControlStateNormal];
    [self.insectBtn setTitle:@"button_selected_1" forState:UIControlStateSelected];
    [self.insectBtn setTitleColor:[UIColor colorWithRed:26/255.0 green:83/255.0 blue:137/255.0 alpha:0.9] forState:UIControlStateNormal];
    [self.insectBtn setTitleColor:[UIColor colorWithRed:100/255.0 green:249/255.0 blue:254/255.0 alpha:0.8] forState:UIControlStateSelected];
    [self.insectBtn addTarget:self action:@selector(action_1) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.insectBtn];


    //: 描述_2
    UIButton *quiverClarityUnderwater = [[UIButton alloc] initWithFrame:CGRectZero];
    UIImage *kaleidoscope = [UIImage imageNamed:@"images/icon_2.png"];
    if (kaleidoscope) {
	    [quiverClarityUnderwater setImage:kaleidoscope forState:UIControlStateNormal];
    }
    [quiverClarityUnderwater setTitle:@"button_2" forState:UIControlStateNormal];
    [quiverClarityUnderwater setTitle:@"button_selected_2" forState:UIControlStateSelected];
    [quiverClarityUnderwater setTitleColor:[UIColor colorWithRed:180/255.0 green:6/255.0 blue:232/255.0 alpha:0.5] forState:UIControlStateNormal];
    [quiverClarityUnderwater setTitleColor:[UIColor colorWithRed:31/255.0 green:44/255.0 blue:136/255.0 alpha:0.7] forState:UIControlStateSelected];
    [quiverClarityUnderwater addTarget:self action:@selector(action_2) forControlEvents:UIControlEventTouchUpInside];
    self.flutterBtn = quiverClarityUnderwater;
    [self.contentView addSubview:quiverClarityUnderwater];
	[self.flutterBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(133);
		make.height.mas_equalTo(109);
		make.top.equalTo(@(27));
	}];


    //: 描述_3
    self.glimmerOracleHoverTextField = [UITextField new];
    [self.contentView addSubview:self.glimmerOracleHoverTextField];
	[self.glimmerOracleHoverTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(99);
		make.height.mas_equalTo(80);
		make.top.equalTo(@(26));
		make.bottom.equalTo(@(26));
	}];


    //: 描述_4
    self.vividImageView = [[UIImageView alloc] init];
    self.vividImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.vividImageView.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [self radiatePlume:self.vividImageView xenophobeXenonJourney:9];
    self.vividImageView.frame = CGRectMake(10, 43, 164, 166);
    UIImage *horizonArchive = [UIImage imageNamed:@"images/image_4.png"];
    if (horizonArchive) {
	    self.vividImageView.image = horizonArchive;
    }
    [self.contentView addSubview:self.vividImageView];


    //: 描述_5
    self.vividDreamscapeUniverseTextView = [UITextView new];
    [self.contentView addSubview:self.vividDreamscapeUniverseTextView];
	[self.vividDreamscapeUniverseTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(64);
		make.height.mas_equalTo(90);
		make.top.equalTo(@(16));
		make.bottom.equalTo(@(27));
	}];
}


@end